import request from "@/router/axios";

let base = "/api/blade-system";
export const getList = (current, size, params) => {
  return request({
    url: base + "/grade/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const remove = ids => {
  return request({
    url: base + "/grade/remove",
    method: "post",
    params: {
      ids
    }
  });
};

export const add = row => {
  return request({
    url: base + "/grade/submit",
    method: "post",
    data: row
  });
};

export const update = row => {
  return request({
    url: base + "/grade/submit",
    method: "post",
    data: row
  });
};
